sunxi: video: Improve monitor video-mode option handling
authorHans de Goede <[email protected]>
Sun, 21 Dec 2014 13:37:45 +0000 (14:37 +0100)
committerHans de Goede <[email protected]>
Wed, 14 Jan 2015 13:56:39 +0000 (14:56 +0100)
commit1c092205a251165950ce59118d253984e6386005
treeef2aa20698eddb1f49bbec22445f447a9fc60043
parent6c727e09a022fcc0701eef58c4a5aedae5d9a6ac
sunxi: video: Improve monitor video-mode option handling

Add a sunxi_monitor enum and parse the monitor option string into this enum
once, rather then doing strcmp-s on it in various places. This also adds
checking for it being a valid value.

This also adds new "none" and "lcd" values in preparation for lcd support.

Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Ian Campbell <[email protected]>
drivers/video/sunxi_display.c